package demo2;

import java.util.Comparator;

public class NameComparator implements Comparator<Animal> {
    @Override
    public int compare(Animal o1, Animal o2) {
        return o1.password - o2.password;
    }
}
